package org.itboys.mobile.entity.mysql.reward;

import org.itboys.mongodb.entity.BaseMySqlEntity;

import java.math.BigDecimal;

/**
 * 作者：zzq
 * 时间：2018/1/27
 * 描述：管理奖和全球奖   奖项配置
 */
public class CooSellingReward extends BaseMySqlEntity {
    private String name;//奖项名称（描述）
    private BigDecimal amount;//团队总业绩达到该值   享受一定比例
    private BigDecimal nextAmount;//下级达标业绩
    private Integer number;//下级达标人数
    private BigDecimal scale;//奖励比例。直接能够达到的最高比例
    private Integer level;//当总业绩达到一定的值后   才会有任意两个市场业绩达标的条件   1，普通级  2，星级
    private Integer type;//1,管理奖  2，全球奖
    private String remark;//备注


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getNextAmount() {
        return nextAmount;
    }

    public void setNextAmount(BigDecimal nextAmount) {
        this.nextAmount = nextAmount;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public BigDecimal getScale() {
        return scale;
    }

    public void setScale(BigDecimal scale) {
        this.scale = scale;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String  getTypeStr(){
        String typeStr="";
        if(type==null)return typeStr;
        switch (type) {
            case 1:
                typeStr="管理奖";
                break;
            case 2:
                typeStr="全球奖";
                break;
            default:
                break;
        }
        return typeStr;
    }

    public String  getLevelStr(){
        String levelStr="";
        if(level==null)return levelStr;
        switch (level) {
            case 1:
                levelStr="普通级";
                break;
            case 2:
                levelStr="星级";
                break;
            default:
                break;
        }
        return levelStr;
    }
}
